
<template>
    <slot v-if="isHave" :Event="PluginEvent[props.Plugin]"></slot>
</template>
<script setup>
import { getCurrentInstance, ref } from 'vue'
const { appContext } = getCurrentInstance();
var PluginEvent = appContext.config.globalProperties.$PluginEvent
const props = defineProps(['Plugin']);
const isHave = ref(props.Plugin in PluginEvent);
</script>
